import request from '@/utils/request'



// 审批查询
export function findNoticePageList(data) {
    return request({
        url: '/notice/findNoticePageList',
        method: 'post',
       data
    })
  }

  // 校园查询
export function findNoticeSchoolPageList(data) {
    return request({
        url: '/noticeSchool/findNoticeSchoolPageList',
        method: 'post',
       data
    })
  }
  // 审批根据id查询
export function findById(data) {
    return request({
        url: '/noticeSchool/findById',
        method: 'post',
       data
    })
  }

    // 查询校园通知管理表
export function getNoticeSchool(id) {
  return request({
      url: '/noticeSchool/getNoticeSchool/'+id,
      method: 'get'
  })
}

    // 查询校园通知管理表
export function addNoticeSchool(data) {
  return request({
      url: '/noticeSchool/addNoticeSchool',
      method: 'post',
      data
  })
}

//删除通知内容
export function deleteNoticeSchool(data) {
  return request({
      url: '/noticeSchool/deleteNoticeSchool',
      method: 'post',
      data
  })
}

//发送通知内容
export function sendNotice(data) {
  return request({
      url: '/noticeSchool/sendNotice',
      method: 'post',
      data
  })
}

//批量修改通知信息
export function batchUpdateNotice(data) {
  return request({
      url: '/noticeSchool/batchUpdateNotice',
      method: 'post',
      data
  })
}

export function updateNoticeSchool(data) {
  return request({
      url: '/noticeSchool/updateNoticeSchool',
      method: 'post',
      data
  })
}


export function selfSchoolNotice(data) {
  return request({
      url: '/noticeSchool/selfSchoolNotice',
      method: 'post',
      data
  })
}

export function readyNotice(data) {
  return request({
      url: '/noticeSchool/readyNotice',
      method: 'post',
      data
  })
}


